<!-- include tpl=header menutitle=$page_rs.title -->
<section class="bg-light p-5 bg-default"{if $cate_rs.banner || $page_rs.banner} style="background:url('{$cate_rs.banner ? $cate_rs.banner.filename : $page_rs.banner.filename}') center center no-repeat;background-size:cover;"{/if}>
	<h1 class="p-4 text-center">{$cate_rs ? $cate_rs.title : $page_rs.title}</h1>
	<!-- php:$taglist = $cate_rs.tag ? $cate_rs.tag : $page_rs.tag -->
	<!-- if $taglist -->
	<div class="container">
		<div class="text-center m-3">
			<span class="p-2 bg-light-50 rounded-lg">
			标签：
			<!-- loop from=$taglist key=$k value=$v id=$idxx -->
			{$v.html}<!-- if $idxx.total != $idxx.num -->，<!-- /if -->
			<!-- /loop -->
			</span>
		</div>
	</div>
	<!-- /if -->
</section>
<section class="container-fluid p-0"><!-- include tpl=block/breadcrumb --></section>
<section class="container">
	<div class="row mt-3">
		<div class="col-sm-4 col-md-3">
			<div class="mb-3">
				<!-- include tpl=block/catelist cid=$cate_rs.id pid=$page_rs.id title=$page_rs.title -->
			</div>
			<div class="mb-3">
				<!-- include tpl=block/contact -->
			</div>
			<div class="mb-3">
				<!-- include tpl=block/hot_products -->
			</div>
			<div class="mb-3"><!-- include tpl=block/taglist --></div>
		</div>
		<div class="col-sm-8 col-md-9">
			<ul class="list-group list-group-flush">
				<!-- loop from=$rslist key=$key value=$value id=$tmpid -->
				<li class="list-group-item">
					<div class="media">
						<!-- if $value.thumb --><img src="{$value.thumb.gd.thumb}" class="mr-3" alt="{$value.title}" style="width:80px"><!-- /if -->
						<div class="media-body">
							<div class="row">
								<div class="col">
									<a href="{$value.url}" title="{$value.title}"><h5>{$value.title}</h5></a>
								</div>
								<!-- if !$value.onlyuser || ($value.onlyuser && $session.user_id) -->
								<div class="col text-end">
									<a href="{if $value.dfile}{url ctrl=download id=$value.dfile.id/}{else}{$value.dlink}{/if}" class="btn btn-primary btn-sm" target="_blank">下载附件</a>
								</div>
								<!-- else -->
								<div class="col text-end">
									<a class="btn btn-danger btn-sm" href="{url ctrl=login _back=$value.url/}">请先登录</a>
								</div>
								<!-- /if -->
							</div>
							<div class="row mt-1">
								<!-- if $value.fsize -->
								<div class="col">
									<small>大小：{$value.fsize}</small>
								</div>
								<!-- /if -->
								<!-- if $value.version -->
								<div class="col">
									<small>版本：{$value.version}</small>
								</div>
								<!-- /if -->
								<div class="col">
									<small>更新日期：{func date Y-m-d $value.dateline}</small>
								</div>
							</div>
							<div class="text-body mt-1">{$value.note}</div>
						</div>
					</div>
				</li>
				<!-- /loop -->
			</ul>
			<div class="mt-2">
				<!-- include tpl=block/pagelist -->
			</div>
		</div>
	</div>
</section>
<!-- include tpl=footer -->